import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询资源组主列表
export function listGroup(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/plm/group/list'),
    method: 'get',
    params: query
  })
}

// 查询资源组主详细
export function getGroup(id) {
  return request({
    url: '/plm/group/' + id,
    method: 'get'
  })
}

// 新增资源组主
export function addGroup(data) {
  return request({
    url: '/plm/group',
    method: 'post',
    data: data
  })
}

// 修改资源组主
export function updateGroup(data) {
  return request({
    url: '/plm/group',
    method: 'put',
    data: data
  })
}

// 删除资源组主
export function delGroup(id) {
  return request({
    url: '/plm/group/' + id,
    method: 'delete'
  })
}
